package Models;

import java.util.Date;
import java.util.List;

public class POSSale {
    private int id;
    private String description;
    private java.util.Date tabOpenTS;
    private java.util.Date tabCloseTS;
    private int tabState;
    private List<POSLineItems> lineItems;
    private boolean reconciled;
    private boolean saleComplete;

	public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getTabOpenTS() {
        return tabOpenTS;
    }

    public void setTabOpenTS(Date tabOpenTS) {
        this.tabOpenTS = tabOpenTS;
    }

    public Date getTabCloseTS() {
        return tabCloseTS;
    }

    public void setTabCloseTS(Date tabCloseTS) {
        this.tabCloseTS = tabCloseTS;
    }

    public int getTabState() {
        return tabState;
    }

    public void setTabState(int tabState) {
        this.tabState = tabState;
    }
    
    public List<POSLineItems> getLineItems() {
        return lineItems;
    }

    public void setLineItems(List<POSLineItems> lineItems) {
        this.lineItems = lineItems;
    }

    public boolean isReconciled() {
		return reconciled;
	}

	public void setReconciled(boolean reconciled) {
		this.reconciled = reconciled;
	}

	public boolean isSaleComplete() {
		return saleComplete;
	}

	public void setSaleComplete(boolean saleComplete) {
		this.saleComplete = saleComplete;
	}
	
	public String getDisplayString(){
		return Integer.toString(this.id) + " - " + this.description;
	}
}
